package com.zsrt.java.day20161223.cg.homework.printstar;

import org.junit.Test;
/**   ��ӡ            	 *		
             *   *	*		
         *	 *	 *	 *	 *
	 *	 *	 *	 *	 *	 *    *
         *	 *	 *	 *	 *
	         *	 *	 *	
                 *		
*/
public class PrintStarTest01 {
@Test
		public  void star01() {
			for(int i = 1;i <= 4;i++){
				for(int k = 1;k <= 4-i;k++){
						System.out.print(" ");
				}
				for(int j = 1;j <= 2*i - 1;j++){
					System.out.print("*");				
				}
				System.out.println();
			}
			for (int i = 1;i <= 3;i++){
				for(int k = 1;k <= i;k++){
					System.out.print(" ");
				}
				for(int j = 1;j <= -2*i + 7;j++){
					System.out.print("*");
				}
				System.out.println();		
			}
		}
	}			

		
